package com.myslef.teaching_platfrom.domain.users;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

@Data
public class User implements Serializable{
    private static final long serialVersionUID = 2L;

    private Integer id;

    private String userName;

    private String password;

    private String uid;

    private String email;

    private String sex;

    private Integer level;

    private String picUrl;
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp update_time;
//    private LocalDateTime createTime;

//    private LocalDateTime updateTime;
}
